package com.albaba.designpattern.composite.text_002;

/**
 * @Description: TODO
 * @Author zx
 * @Date 2025/2/21 14:57
 * @Version 1.0
 */
public class File extends Entry{

    // 文件名
    private String name;

    // 文件大小
    private int size;

    public File(String name, int size) {
        this.name = name;
        this.size = size;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public int getSize() {
        return this.size;
    }

    @Override
    public Entry add(Entry entry) {
        return null;
    }

    @Override
    public void printList(String prefix) {

    }
}
